#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N = 5e5 + 10;
int a[N];
signed main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i)
    cin >> a[i];
  //   sort(a + 1, a + n + 1); 题目保证是升序的
  int mid = n / 2, ans = 0;
  for (int i = 1, j = mid + 1; i <= mid && j <= n;) {
    if (a[i] * 2 <= a[j])
      ++i, ++j, ++ans;
    else
      ++j;
  }
  printf("%lld\n", ans);
  return 0;
}
